const Joi = require('joi')

exports.create = Joi.object().keys({
	title: Joi.string().required(),
	info: Joi.string().required(),
	previewTxt: Joi.string().required(),
	title: Joi.string().required(),
})

exports.needId = Joi.object().keys({
	id: Joi.string().required(),
})

exports.update = Joi.object().keys({
	id: Joi.string().required(),
	title: Joi.string().required(),
	info: Joi.string().required(),
	previewTxt: Joi.string().required(),
	title: Joi.string().required(),
})